package com.example.entity;

import com.example.pojo.Medicine;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * @email: pengyujun53@163.com
 * @author: peng_YuJun
 * @date: 2024/2/25
 * @time: 16:52
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class VoAptDetail {
    private Integer aptId;//病情单编号
    private String ptId; //预约人id
    private String drId; //医师id
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date aptDate; //预计就诊时间
    private Integer stage; //预计就诊时间段，0为全天，1为上午，2为下午
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date aptTime;
    private Integer aptStatus;

    private String drName; //医师姓名
    private String drEntName; //科室名称
    private String drEntAddr; //科室位置

    private Long dxId;
    private String symptomIds; //主要疾病诊断
    private List<String> symptoms; //主要疾病诊断
    private String diagnosis; //诊断信息
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date diagnosisTime; //诊断时间
    private Integer stars;
    private String evaluation; //评价

    private String medicineIds; //开药信息
    private List<Medicine> medicineList;
    private String dosage;
    private String useway;
    private Integer prescriptionStatus; //买药状态
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date prescriptionTime; //开药时间

    private String signature; //医师签名
}
